package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentRepository extends MongoRepository<Department,String> {

    Department findByDepcodeAndHoscode(String Depcode,String Hoscode);

    //根据hoscode查询所有的Department(科室)
    List<Department> findByHoscode(String hoscode);

}
